<?php

class Settings {
	public static $settings = array();

	public static function load() {
		$_s = Yii::app()->db->createCommand('SELECT * from atom.settings')->queryAll();
		foreach($_s as $s) {
			self::$settings[$s['id']] = $s['value'];
		}
		Yii::app()->params['settings'] = self::$settings;
	}
}

?>
